package comc.springbatch;

import comc.pojo.LlAppyInfo;
import comc.pojo.User;
import org.omg.CosNaming._BindingIteratorImplBase;
import org.springframework.batch.item.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DbWriter implements ItemWriter {

    @Override
    public void write(List list) throws Exception {
        for (Object o : list) {
            LlAppyInfo user=(LlAppyInfo) o;
            System.out.println("====写入的数据："+user.toString());

        }
    }
}
